package com.mybatisx.mybatisplus.controller;


import com.mybatisx.mybatisplus.common.response.CommonCode;
import com.mybatisx.mybatisplus.common.response.QueryResponseResult;
import com.mybatisx.mybatisplus.dto.ActReModelDTO;
import com.mybatisx.mybatisplus.service.ActReModelService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuyue
 * @since 2021-09-01
 */
@RestController
@RequestMapping("/mybatisplus/act-re-model")
@Log4j2
public class ActReModelController {

    @Autowired
     private ActReModelService actReModelService;

     @PostMapping("/selectList")
   public QueryResponseResult selectActReModelList(@RequestBody ActReModelDTO in){
         try {
             return  actReModelService.selectList(in);
         } catch (Exception e) {
              log.error("查询异常{}",e);
             return  new QueryResponseResult(CommonCode.FAIL,null);
         }
     }
}

